<template>
    <div>
         <el-menu
        default-active="2"
        class="el-menu-vertical-demo"
         active-text-color="#ffd04b"
        unique-opened
        router
        :collapse="Iscollapse"
        :default-active="activePath"
      >
        <!-- 一级菜单模板区域 -->
        <el-submenu index="1">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>用户管理</span>
          </template>
          <!-- 二级菜单 -->
          <el-menu-item index="1-2">用户列表</el-menu-item>
        </el-submenu>

        <el-submenu index="2">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>权限管理</span>
          </template>
          <!-- 二级菜单 -->
          <el-menu-item index="ris">权限列表</el-menu-item>
        </el-submenu>
      </el-menu>
    </div>
</template>